#include "User_fill_led.h"
#include "stm32f1xx_hal.h"
#include <stdio.h>

void enable_led(void)
{
	HAL_GPIO_WritePin(GPIOB, LED0_Pin|LED0B4_Pin, GPIO_PIN_RESET);
	printf("done\r\n");
	
}
	
void disable_led(void)
{
	HAL_GPIO_WritePin(GPIOB, LED0_Pin|LED0B4_Pin, GPIO_PIN_SET);
	printf("done\r\n");
}

void fill_led_Task()
{
	if(g_system.enable_fill_led)
	{
		g_system.enable_fill_led = 0;
		enable_led();
	}
	if(g_system.disable_fill_led)
	{
		g_system.disable_fill_led = 0;
		disable_led();		
	}
}